//
//  StatusErrorView.m
//  fullsharetop
//
//  Created by lqq on 16/9/22.
//  Copyright © 2016年 lqq. All rights reserved.
//

#import "ShowTipsView.h"
#import "SafeControl.h"
#import "UIColor+Extension.h"
@interface ShowTipsView()


@end
@implementation ShowTipsView


- (void)awakeFromNib
{
    [super awakeFromNib];
    _loadingView.hidden = YES;
    _descLabel.hidden = YES;
    _callBackBtn.hidden = YES;
    _callBackBtn.layer.cornerRadius = 2;
    _callBackBtn.layer.masksToBounds = YES;
    
    NSMutableArray *animationImages = [NSMutableArray array];
    for (int i = 1 ;  i<= 9; i++) {
        NSString *imageName = [NSString stringWithFormat:@"run_%d",i];
        [animationImages safeAddObject:[UIImage imageNamed:imageName]];
    }
    _loadingView.animationImages = animationImages;
    _loadingView.animationDuration = 0.5;
    _loadingView.layer.cornerRadius = 4;
    _loadingView.layer.masksToBounds = YES;
    [_loadingView startAnimating];
}


- (IBAction)callBackBtnClicked {
    if (_callBackBlock) {
        _callBackBlock();
    }
}

-(void)dealloc
{
    NSLog(@"%s",__FUNCTION__);
}
@end
